package com.erytech.linktalk.web.client.service;

import java.util.Date;

import com.google.gwt.user.client.rpc.IsSerializable;

public class MessageInfo implements IsSerializable {

	String roomId;

	String from;

	String to;

	String body;

	Date postTime;

	public MessageInfo() {
	}

	public MessageInfo(String roomId, String from, String to, String body) {
		this.roomId = roomId;
		this.from = from;
		this.to = to;
		this.body = body;
	}

	public String getRoomId() {
		return roomId;
	}

	public void setRoomId(String roomId) {
		this.roomId = roomId;
	}

	public String getFrom() {
		return from;
	}

	public void setFrom(String from) {
		this.from = from;
	}

	public String getTo() {
		return to;
	}

	public void setTo(String to) {
		this.to = to;
	}

	public String getBody() {
		return body;
	}

	public void setBody(String body) {
		this.body = body;
	}

	public Date getPostTime() {
		return postTime;
	}

	public void setPostTime(Date postTime) {
		this.postTime = postTime;
	}

	public String toString() {
		return "{roomId: " + roomId + ", from: " + from + ", to: " + to
				+ ", body: " + body + ", postTime: " + postTime + "}";
	}

}
